# -*- coding: utf-8 *-*
from xml.etree.ElementTree import ElementTree

def readmemory(dir):
    mtree = ElementTree()
    mtree.parse("memori.xml")
    print mtree
    d = mtree.find(dir)
    print d.text
    return d

if __name__ == "__main__":
    # Someone is launching this directly
    dir="Dir2"
    readmemory(dir)
